package com.fr.report.script;

import com.fr.base.ColumnRow;

public class CalculatorNameSpace
  implements NameSpace
{
  private Calculator ca;

  public CalculatorNameSpace(Calculator paramCalculator)
  {
    this.ca = paramCalculator;
  }

  public Function getMethod(Object paramObject, Calculator paramCalculator)
  {
    return this.ca.resolveMethod(paramObject);
  }

  public Object getVariable(Object paramObject, Calculator paramCalculator)
  {
    return this.ca.resolveVariable(paramObject);
  }

  public Object getCellElementAttribute(ColumnRow paramColumnRow, Object paramObject, Calculator paramCalculator)
  {
    return this.ca.resolveCellElementAttribute(paramColumnRow, paramObject);
  }
}